package com.okbihuo.perm.constants;

public enum Fonts {

    /**
     *
     */
    PANG_MEN_ZHENG_DAO("庞门正道", "庞门正道.ttf"),
    KAI_TI("楷体", "simkai.ttf"),
    SONG_TI("宋体", "simsun_0.ttf"),
    SI_YUAN_HEI_TI_BLACK("思源黑体-Black", "NotoSansHans-Black.ttf"),
    SI_YUAN_HEI_TI_REGULAR("思源黑体-Regular", "NotoSansHans-Regular.ttf"),
    SI_YUAN_HEI_TI_LIGHT("思源黑体-Light", "NotoSansHans-Light.ttf"),
    PANG_MEN_ZHENG_DAO_BOLD("庞门粗体", "庞门正道粗书体.ttf"),
    ZHAN_KU_XIAO_WEI_LOGO("站酷小薇LOGO体", "站酷小薇LOGO体.ttf"),
    ZHAN_KU_QING_KE_HUANG_YOU("站酷庆科黄油体", "站酷庆科黄油体.ttf"),
    ZHAN_KU_KUAI_LE("站酷快乐体", "站酷快乐体2016.ttf"),
    ZHAN_KU_WEN_YI("站酷文艺体", "站酷文艺体.ttf");

    public String name;
    public String url;

    Fonts(String name, String url) {
        this.name = name;
        this.url = url;
    }

    public static String getUrlByName(String name) {
        for (int i = 0; i < values().length; i++) {
            Fonts font = values()[i];
            if (font.name.equals(name)) {
                return font.url;
            }
        }
        return Fonts.SI_YUAN_HEI_TI_REGULAR.url;
    }
}
